package com.taotao.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: wangjin
 * @CreateTime: 2022-08-11  21:30
 */
@Controller
public class SpringMVCDemoController {

    /**
     * 标记当前该类为控制类
     * @Controller 将该类注入到ioc容器
     * SpringMVCDemo----必须列入spring依赖
     * @return
     */
    @RequestMapping("/demo01")
    @ResponseBody
    public String demo01(){
       return "demo01";
    }
}
